const Mock = require('mockjs');

const data = Mock.mock({
  'items|2-6': [
    {
      id: '@id',
      title: '@sentence(2, 4)',
      completed: '@boolean',
    },
  ],
});

module.exports = [
  {
    url: '/tolist/list',
    type: 'post',
    response: (config) => {
      return {
        code: 0,
        data: data.items,
      };
    },
  },
];
